package com.geezdata.cps.ttk.query.query.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.geezdata.cps.base.utils.BeanUtil;
import com.geezdata.cps.ttk.common.vo.RoleResVO;
import com.geezdata.cps.ttk.domain.domain.Role;
import com.geezdata.cps.ttk.mapper.mapper.RoleMapper;
import com.geezdata.cps.ttk.query.query.RoleService;


@Service
public class RoleServiceImpl implements RoleService {
	@Autowired
    private RoleMapper roleMapper;
	
	@Override
	public RoleResVO getRoleDetail(Long roleId) {
		Role role = roleMapper.selectByPrimaryKey(roleId);
		return BeanUtil.convert(role, RoleResVO.class);
	}
}